/**
 * Created by pankaj on 25/10/14.
 */
/**
 * Created by pankaj on 25/10/14.
 */
define(['jquery'], function($){

    var form = function(){

        $('#fileupload').change(function() {
            if (this.files && this.files[0]) {
                $('#profile-upload-preview').css('display', 'block').attr('src', $(this).result);
                var reader = new FileReader();
                reader.onload = function (e) {
                    $('#profile-upload-preview').attr('src', e.target.result);
                };
                reader.readAsDataURL(this.files[0]);
                $('.js_signup_pic').show();
            }
        });

    };
    return form;
});



